# Set index to be 1
set -g base-index 1
setw -g pane-base-index 1

# Change prefix key to `
unbind C-b
set -g prefix `
bind-key ` send-prefix
bind-key C-a set-option -g prefix C-a
bind-key C-b set-option -g prefix `

# we might need ` at some point, allow switching
bind-key C-a set-option -g prefix C-a
bind-key C-b set-option -g prefix `

unbind ]

setw -g monitor-activity off
set -g visual-activity off
set-option -g bell-action none

# set-window-option -g window-status-current-style bg=yellow
set-window-option -g automatic-rename on

bind C-l send-keys 'C-l'

# No escape time for vi mode
set -sg escape-time 0

# Use vim keybindings in copy mode
setw -g mode-keys vi

bind c new-window -c "#{pane_current_path}"

set -g default-terminal 'tmux-256color'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'

set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'

set-option -g mouse on

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'Morantron/tmux-fingers'
set -g @plugin 'rose-pine/tmux'

run '~/.tmux/plugins/tpm/tpm'

bind C-l send-keys 'C-l'


